package com.deliinsns.app.entrance;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.deliinsns.sys.BasicController;
@Controller
public class CompanyEntrance extends BasicController {
	
	 @RequestMapping(value = "/company/login", method = RequestMethod.GET)
	 public String companyLogin(HttpServletRequest request,HttpServletResponse response)throws Exception {
		 request.setAttribute("actionFor", "login");
		return "company/loginAndRegister";
	 }
	 @RequestMapping(value = "/company/register", method = RequestMethod.GET)
	 public String companyRegister(HttpServletRequest request,HttpServletResponse response)throws Exception {
		 request.setAttribute("actionFor", "register");
		return "company/loginAndRegister";
	 }
	@RequestMapping(value = "/company", method = RequestMethod.GET)
	 public String company(HttpServletRequest request,HttpServletResponse response)throws Exception {
		return "company/index";
	 }
	@RequestMapping(value = "/company/supplyList", method = RequestMethod.GET)
	 public String applyList(HttpServletRequest request,HttpServletResponse response)throws Exception {
		return "company/supplyList";
	 }
	@RequestMapping(value = "/company/supplyEdit", method = RequestMethod.GET)
	 public String applyEdit(HttpServletRequest request,HttpServletResponse response)throws Exception {
		return "company/supplyEdit";
	 }
	
	@RequestMapping(value = "/company/supplyDetail", method = RequestMethod.GET)
	 public String supplyDetail(HttpServletRequest request,HttpServletResponse response)throws Exception {
		return "company/supplyDetail";
	 }
	
	@RequestMapping(value = "/company/contact", method = RequestMethod.GET)
	 public String contact(HttpServletRequest request,HttpServletResponse response)throws Exception {
		return "company/contact";
	 }
	
}
